<?php
namespace app\api\controller\food;

use app\api\controller\food\Controller;
use app\api\model\food\Qrcode as QrcodeModel;

/**
 * 普通二维码控制器
 */
class Qrcode extends Controller
{
    /**
     * 详情
     */
    public function detail($id)
    {
		if($detail = QrcodeModel::detail($id)){
			return $this->renderSuccess(compact('detail'));
		}
		return $this->renderError('数据不存在');
    }
}
